using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._TargetMarketing
{
    /// <summary>
    /// <para>Export Segmentation Profile</para>
    /// <para>Exports a segmentation profile to a table.</para>
    /// <para>将分段配置文件导出到表中。</para>
    /// </summary>    
    [DisplayName("Export Segmentation Profile")]
    public class ExportSegmentationProfile : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportSegmentationProfile()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_profile">
        /// <para>Input Profile</para>
        /// <para>The segmentation file to export.</para>
        /// <para>要导出的分段文件。</para>
        /// </param>
        /// <param name="_out_table_name">
        /// <para>Output Table</para>
        /// <para>The name of the table to be created.</para>
        /// <para>要创建的表的名称。</para>
        /// </param>
        public ExportSegmentationProfile(object _in_profile, object _out_table_name)
        {
            this._in_profile = _in_profile;
            this._out_table_name = _out_table_name;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Export Segmentation Profile";

        public override string CallName => "ba.ExportSegmentationProfile";

        public override List<string> AcceptEnvironments => ["baDataSource", "workspace"];

        public override object[] ParameterInfo => [_in_profile, _out_table_name];

        /// <summary>
        /// <para>Input Profile</para>
        /// <para>The segmentation file to export.</para>
        /// <para>要导出的分段文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Profile")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_profile { get; set; }


        /// <summary>
        /// <para>Output Table</para>
        /// <para>The name of the table to be created.</para>
        /// <para>要创建的表的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_table_name { get; set; }


        public ExportSegmentationProfile SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}